package james.gan.config.spring.bean;

import java.io.Serializable;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 注册信息
 */
@SuppressWarnings("serial")
@Getter
@Setter
@ToString
public class ServiceDefinition implements Serializable {

	private String host;// 主机
	private int port;// 端口
	private Class<?> classType;// 接口类型
	private String name;// 名称
	private boolean push;// 发布
	private Class<?> instanceType;// 实例类型

	public ServiceDefinition(Class<?> classType, String name, boolean push) {
		super();
		this.classType = classType;
		this.name = name;
		this.push = push;
	}

	public ServiceDefinition() {
		super();
	}
	
}
